package final_myTest;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author： pang-yun
 * @date： 2021-12-03 09:22
 * 功能目的 ：用于
 */

public class GunTest {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext("final_myTest");
        Gun rifle = applicationContext.getBean("rifle", Gun.class);
        rifle.shot();
    }
}
